<?php

namespace App\Transformers;


use App\Models\Profile;
use League\Fractal\TransformerAbstract;


class ProfileTransformer extends TransformerAbstract
{
    public function transform(Profile $profile)
    {
        return [
            'name' => $profile->name,
            'avatar' => $profile->avatar,
            'nick_name' => $profile->nick_name,
            'gender' => $profile->gender,
            'info' => $profile->info,
            'desc' => $profile->desc
        ];
    }
}